package com.hao.wms.service.impl;

import com.hao.wms.dao.ISupplierDao;
import com.hao.wms.domain.Supplier;
import com.hao.wms.query.PageResult;
import com.hao.wms.query.QueryObject;
import com.hao.wms.service.ISupplierService;

import java.util.List;

public class SupplierServiceImpl implements ISupplierService {
	private ISupplierDao dao;
	

	public void setDao(ISupplierDao dao) {
		this.dao = dao;
	}

	@Override
	public void save(Supplier supplier) {
		dao.save(supplier);

	}

	@Override
	public void update(Supplier supplier) {
		dao.update(supplier);

	}

	@Override
	public void delete(Supplier supplier) {
		dao.delete(supplier);

	}

	@Override
	public Supplier get(Long id) {
		return dao.get(id);
	}

	@Override
	public List<Supplier> list() {
		return dao.list();
	}

	@Override
	public PageResult query(QueryObject qo) {
		return dao.query(qo);
	}
	
	

}
